/*
 * Copyright (c) 2018-2999 九五云信息科技有限公司 All rights reserved.
 *
 * https://www.gz-yami.com/
 *
 */

package com.yami.shop.live.comment.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.yami.shop.common.util.PageParam;
import com.yami.shop.common.wx.bean.resp.RoomResponse;
import com.yami.shop.live.comment.model.LiveProdStore;
import me.chanjar.weixin.common.error.WxErrorException;

import java.util.List;

/**
 *
 *
 * @author LGH
 * @date 2020-08-04 16:57:17
 */
public interface LiveProdStoreService extends IService<LiveProdStore> {

    IPage<LiveProdStore> getPage(PageParam<LiveProdStore> page, LiveProdStore liveProdStore);

    boolean submitVerify(LiveProdStore liveProdStore);

    PageParam<RoomResponse> listLiveProdsByStatus(PageParam<RoomResponse> page, Integer status, Long shopId);

    IPage<LiveProdStore> pageProdByRoomId(PageParam<LiveProdStore> page, Integer roomId);

    void synchronousWxLiveProds() throws WxErrorException;

    void removeWxLiveProdById(Long liveProdStoreId, long shopId) throws WxErrorException;

    void updateWxLiveProdById(LiveProdStore liveProdStore) throws WxErrorException;

    void removeOldLiveProd() throws WxErrorException;
}
